package com.zzh.elasticSearchDemo.originalESConnect;

import com.zzh.elasticSearchDemo.model.JobDetail;

import java.io.IOException;

/**
 * @ClassName OptionImpl
 * @date 2021/3/15 20:43
 * @Version 1.0
 * @Description //TODO
 */
public interface OptionImpl {

    void add(JobDetail jobDetail) throws IOException;

    JobDetail findById(long id) throws IOException;

    void  update(JobDetail jobDetail) throws  IOException;

    // 关闭ES连接
    void close() throws IOException;
}
